<template>
  <div>
    <TypeNav/>
    <ListContainer />
    <Recommend />
    <Rank />
    <Like />
    <Floor v-for="(item,index) in floor" :key="index" :floor="item" :index="index"/>
    <Brand />
  </div>
</template>

<script>

import ListContainer from "./ListContainer";
import Recommend from "./Recommend";
import Rank from "./Rank";
import Like from "./Like";
import Floor from "./Floor";
import Brand from "./Brand";
import {mapState} from 'vuex'
export default {
  name: "sphHome",
  components: {
    ListContainer,
    Recommend,
    Rank,
    Like,
    Floor,
    Brand,
  },
  mounted(){
    this.$store.dispatch('home/asyncgetFloorList')
  },
  computed:{
    ...mapState('home',['floor'])
  }
};
</script>

<style lang="less" scoped></style>
